                        <? $frmtime = time(); ?>
                        <div id="contentcontainer">
                            <div class="main">
                                <h3 class="title"><?=$clabel?> &raquo; <?=$mlabel?></h3>
                                <div class="formdiv">                                    
                                        <table width="100%">
                                            <? if( isset($errors) ) {
                                               foreach($errors as $error) {
                                               ?>
                                            <tr>
                                                <td class="errormsg" colspan="3">
                                                    <?=$error?>    
                                                </td>
                                            </tr>   
                                               <? 
                                               } 
                                            }  ?>
                                            <? if( isset($successes) ) {
                                               foreach($successes as $success) {
                                               ?>
                                            <tr>
                                                <td class="successmsg" colspan="3">
                                                    <?=$success?>    
                                                </td>
                                            </tr>   
                                               <? 
                                               } 
                                            }  
                                            if( isset($filterdata) && $filterdata != "") {
                                            ?>
                                            <tr>
                                                <td colspan="3">
                                                    <?
                                                    $this->load->view('elements/filter',$filterdata);
                                                    ?>                                
                                                </td>                                                
                                            </tr>
                                            <?
                                            }
                                            ?>
                                        </table>                                	
                                 </div>
                                <?
                                    //print_object($midata); exit;
                                  if(isset($dgdata)) 
        						      $this->load->view('elements/datagrid',$dgdata);
        						?>   
                            </div>
                        </div>            